from celery_tasks.sms.yuntongxun.sms import CCP
from celery_tasks.sms import constants
from celery_tasks.main import celery_app


# 把下面的函数装饰成为一个celery函数任务
@celery_app.task(name='send_sms_code')
def send_sms_code(monile,sms_code):
    CCP().send_template_sms(monile,[sms_code,constants.SMS_COOE_EXPIRE_REDIS // 60],1)